<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <title> - 查看邮件</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico">
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/css/font-awesome.css}" rel="stylesheet">
    <link th:href="@{/css/plugins/iCheck/custom.css}" rel="stylesheet">
    <link th:href="@{/css/animate.css}" rel="stylesheet">
    <link th:href="@{/css/style.css}" rel="stylesheet">

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content">
        <div class="row">
            <div class="col-sm-12">
                <div class="mail-box-header">
                    <h2>查看邮件</h2>
                    <div class="mail-tools tooltip-demo m-t-md">
                        <h3>
                        <span class="font-noraml">主题： </span><span th:text="${email.emailSubject}"></span>
                    </h3>
                        <h5>
                        <span class="pull-right font-noraml"><span th:text="${#dates.format(email.createTime, 'yyyy-MM-dd HH:mm:ss')}"></span></span>
                        <span class="font-noraml">收件人： </span><span th:text="${email.emailAddress}"></span>
                    </h5>
                    </div>
                </div>
                <div class="mail-box">
                    <div class="mail-body">
                        <span th:utext="${email.emailContent}"></span>
                    </div>
                    <div class="mail-attachment">
                        <p>
                            <span><i class="fa fa-paperclip"></i> <span th:text="${#lists.size(attachmentList)}"></span>个附件</span>
                            <!--<a href="mail_detail.html#">下载全部</a> |-->
                            <!--<a href="mail_detail.html#">预览全部图片</a>-->
                        </p>

                        <div class="attachment">
                            <div class="file-box">
                                <div class="file" th:each="attachment:${attachmentList}">
                                    <a th:href="@{/attachment/download.do(id=${attachment.attachmentId})}">
                                        <div class="file-name" th:text="${attachment.attachmentName}">
                                        </div>
                                    </a>
                                </div>
                            </div>
                            <div class="clearfix"></div>
                        </div>
                    </div>
                    <div class="mail-body text-right tooltip-demo">
                        <a class="btn btn-sm btn-white" th:href="@{/email/history.do}"><i class="fa fa-reply"></i> 返回</a>
                        <!--<a class="btn btn-sm btn-white" href="mail_compose.html"><i class="fa fa-arrow-right"></i> 下一封</a>-->
                        <!--<button title="" data-placement="top" data-toggle="tooltip" type="button" data-original-title="打印这封邮件" class="btn btn-sm btn-white"><i class="fa fa-print"></i> 打印</button>-->
                        <!--<button title="" data-placement="top" data-toggle="tooltip" data-original-title="删除邮件" class="btn btn-sm btn-white"><i class="fa fa-trash-o"></i> 删除</button>-->
                    </div>
                    <div class="clearfix"></div>


                </div>
            </div>
        </div>
    </div>


    <!-- 全局js -->
    <script th:src="@{/js/jquery.min.js}"></script>
    <script th:src="@{/js/bootstrap.min.js}"></script>



    <!-- 自定义js -->
    <script th:src="@{/js/content.js}"></script>


    <!-- iCheck -->
    <script th:src="@{/js/plugins/iCheck/icheck.min.js}"></script>
    <script>
        $(document).ready(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
        });
    </script>

    
    

</body>

</html>
